/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package telas;

import aplicacao.Aplicacao;
import java.awt.Color;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import aplicacaoPlano.AplicacaoPlano;
import aplicacaoPlano.AplicacaoPlanoDAO;
import aplicacaoPlano.AplicacaoPlanoModal;

/**
 *
 * @author Max Weber
 */
public class O13TelaPlanoDeVacinacao extends javax.swing.JFrame {
    
    /**
     * Creates new form O10TelaConsultarVacinas
     */
    public O13TelaPlanoDeVacinacao() {
        initComponents();
        AplicacaoPlanoDAO dao = new AplicacaoPlanoDAO();
        AplicacaoPlanoModal planoAplicacoes = new AplicacaoPlanoModal(dao.listar());
        tbPlanoDeVacinacao.setModel(planoAplicacoes);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bgEntrou = new javax.swing.JLabel();
        bgSaiu = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        painelFechar = new javax.swing.JPanel();
        btFechar = new javax.swing.JLabel();
        btMaxi = new javax.swing.JLabel();
        btMini = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbPlanoDeVacinacao = new javax.swing.JTable();
        btCancelar = new javax.swing.JPanel();
        iconCancelar = new javax.swing.JLabel();
        tfCancelar = new javax.swing.JLabel();
        btAdicionar = new javax.swing.JPanel();
        iconAdicionar = new javax.swing.JLabel();
        tfAdicionar = new javax.swing.JLabel();
        btRemover = new javax.swing.JPanel();
        iconRemover = new javax.swing.JLabel();
        tfRemover = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        bgEntrou.setBackground(new java.awt.Color(68, 165, 237));
        bgEntrou.setText("jLabel4");

        bgSaiu.setBackground(new java.awt.Color(10, 66, 108));
        bgSaiu.setText("jLabel4");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setUndecorated(true);
        setResizable(false);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBackground(new java.awt.Color(0, 114, 180));
        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/icone_barraDeTit.png"))); // NOI18N

        painelFechar.setBackground(new java.awt.Color(128, 128, 128));
        painelFechar.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                painelFecharMouseMoved(evt);
            }
        });
        painelFechar.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
            public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
                painelFecharMouseWheelMoved(evt);
            }
        });
        painelFechar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                painelFecharMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                painelFecharMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                painelFecharMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                painelFecharMouseReleased(evt);
            }
        });

        btFechar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/fechar.png"))); // NOI18N
        btFechar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btFecharMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btFecharMouseEntered(evt);
            }
        });

        javax.swing.GroupLayout painelFecharLayout = new javax.swing.GroupLayout(painelFechar);
        painelFechar.setLayout(painelFecharLayout);
        painelFecharLayout.setHorizontalGroup(
            painelFecharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelFecharLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btFechar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        painelFecharLayout.setVerticalGroup(
            painelFecharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelFecharLayout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addComponent(btFechar)
                .addGap(3, 3, 3))
        );

        btMaxi.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/maximizar.png"))); // NOI18N

        btMini.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/minimizar.png"))); // NOI18N

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        tbPlanoDeVacinacao.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tbPlanoDeVacinacao);

        jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, -1, 310));

        btCancelar.setBackground(new java.awt.Color(10, 66, 108));
        btCancelar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btCancelarMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btCancelarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btCancelarMouseExited(evt);
            }
        });
        btCancelar.setLayout(new java.awt.GridBagLayout());

        iconCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/Delete-32.png"))); // NOI18N
        iconCancelar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                iconCancelarMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                iconCancelarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                iconCancelarMouseExited(evt);
            }
        });
        btCancelar.add(iconCancelar, new java.awt.GridBagConstraints());

        tfCancelar.setFont(new java.awt.Font("Arial", 1, 16)); // NOI18N
        tfCancelar.setForeground(new java.awt.Color(255, 255, 255));
        tfCancelar.setText("  Cancelar");
        tfCancelar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tfCancelarMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                tfCancelarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                tfCancelarMouseExited(evt);
            }
        });
        btCancelar.add(tfCancelar, new java.awt.GridBagConstraints());

        jPanel2.add(btCancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 350, 120, 30));

        btAdicionar.setBackground(new java.awt.Color(10, 66, 108));
        btAdicionar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btAdicionarMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btAdicionarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btAdicionarMouseExited(evt);
            }
        });
        btAdicionar.setLayout(new java.awt.GridBagLayout());

        iconAdicionar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/nova vacina.png"))); // NOI18N
        iconAdicionar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                iconAdicionarMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                iconAdicionarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                iconAdicionarMouseExited(evt);
            }
        });
        btAdicionar.add(iconAdicionar, new java.awt.GridBagConstraints());

        tfAdicionar.setFont(new java.awt.Font("Arial", 1, 16)); // NOI18N
        tfAdicionar.setForeground(new java.awt.Color(255, 255, 255));
        tfAdicionar.setText("  Adicionar");
        tfAdicionar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tfAdicionarMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                tfAdicionarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                tfAdicionarMouseExited(evt);
            }
        });
        btAdicionar.add(tfAdicionar, new java.awt.GridBagConstraints());

        jPanel2.add(btAdicionar, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 350, 140, 30));

        btRemover.setBackground(new java.awt.Color(10, 66, 108));
        btRemover.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btRemoverMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btRemoverMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btRemoverMouseExited(evt);
            }
        });
        btRemover.setLayout(new java.awt.GridBagLayout());

        iconRemover.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/excluir2.png"))); // NOI18N
        iconRemover.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                iconRemoverMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                iconRemoverMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                iconRemoverMouseExited(evt);
            }
        });
        btRemover.add(iconRemover, new java.awt.GridBagConstraints());

        tfRemover.setFont(new java.awt.Font("Arial", 1, 16)); // NOI18N
        tfRemover.setForeground(new java.awt.Color(255, 255, 255));
        tfRemover.setText(" Remover");
        tfRemover.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tfRemoverMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                tfRemoverMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                tfRemoverMouseExited(evt);
            }
        });
        btRemover.add(tfRemover, new java.awt.GridBagConstraints());

        jPanel2.add(btRemover, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 350, 120, 30));

        jLabel2.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 18)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Plano de vacinação");

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/vacinapeq.png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel2)
                        .addGap(71, 71, 71)
                        .addComponent(btMini)
                        .addGap(5, 5, 5)
                        .addComponent(btMaxi)
                        .addGap(5, 5, 5)
                        .addComponent(painelFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(3, 3, 3))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(painelFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel2)
                        .addComponent(jLabel1)
                        .addComponent(jLabel3))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btMaxi)
                            .addComponent(btMini))
                        .addGap(5, 5, 5)))
                .addGap(3, 3, 3)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)
                .addGap(3, 3, 3))
        );

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 500, 430));

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void painelFecharMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseReleased

    }//GEN-LAST:event_painelFecharMouseReleased

    private void painelFecharMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMousePressed
        //painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_painelFecharMousePressed

    private void painelFecharMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseExited
        // TODO add your handling code here:
        painelFechar.setBackground(Color.gray);

    }//GEN-LAST:event_painelFecharMouseExited

    private void painelFecharMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseEntered
        // TODO add your handling code here:
        painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_painelFecharMouseEntered

    private void bgEntra(JPanel painel){
        painel.setBackground(bgEntrou.getBackground());
    }
    
    private void bgSai(JPanel painel){
        painel.setBackground(bgSaiu.getBackground());
    }
    
    private void painelFecharMouseWheelMoved(java.awt.event.MouseWheelEvent evt) {//GEN-FIRST:event_painelFecharMouseWheelMoved

    }//GEN-LAST:event_painelFecharMouseWheelMoved

    private void painelFecharMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseMoved

    }//GEN-LAST:event_painelFecharMouseMoved

    private void btFecharMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btFecharMouseEntered
        painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_btFecharMouseEntered

    private void btFecharMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btFecharMouseClicked
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_btFecharMouseClicked

    private void iconCancelarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconCancelarMouseClicked
        // TODO add your handling code here:

    }//GEN-LAST:event_iconCancelarMouseClicked

    private void iconCancelarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconCancelarMouseEntered
        bgEntra(btCancelar);
    }//GEN-LAST:event_iconCancelarMouseEntered

    private void iconCancelarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconCancelarMouseExited
        bgSai(btCancelar);
    }//GEN-LAST:event_iconCancelarMouseExited

    private void tfCancelarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfCancelarMouseClicked
       
    }//GEN-LAST:event_tfCancelarMouseClicked

    private void tfCancelarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfCancelarMouseEntered
        bgEntra(btCancelar);
    }//GEN-LAST:event_tfCancelarMouseEntered

    private void tfCancelarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfCancelarMouseExited
        bgSai(btCancelar);
    }//GEN-LAST:event_tfCancelarMouseExited

    private void btCancelarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btCancelarMouseClicked
        // TODO add your handling code here:

    }//GEN-LAST:event_btCancelarMouseClicked

    private void btCancelarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btCancelarMouseEntered
        // TODO add your handling code here:
        bgEntra(btCancelar);
    }//GEN-LAST:event_btCancelarMouseEntered

    private void btCancelarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btCancelarMouseExited
        bgSai(btCancelar);
    }//GEN-LAST:event_btCancelarMouseExited

    private void iconAdicionarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconAdicionarMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_iconAdicionarMouseClicked

    private void iconAdicionarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconAdicionarMouseEntered
        // TODO add your handling code here:
        bgEntra(btAdicionar);
    }//GEN-LAST:event_iconAdicionarMouseEntered

    private void iconAdicionarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconAdicionarMouseExited
        // TODO add your handling code here:
        bgSai(btAdicionar);
    }//GEN-LAST:event_iconAdicionarMouseExited

    private void tfAdicionarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfAdicionarMouseClicked
        // TODO add your handling code here:
        O14TelaAdicionarAplicacao tela = new O14TelaAdicionarAplicacao(tbPlanoDeVacinacao);
        tela.setVisible(true);
    }//GEN-LAST:event_tfAdicionarMouseClicked

    private void tfAdicionarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfAdicionarMouseEntered
        // TODO add your handling code here:
         bgEntra(btAdicionar);
    }//GEN-LAST:event_tfAdicionarMouseEntered

    private void tfAdicionarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfAdicionarMouseExited
        // TODO add your handling code here:
        bgSai(btAdicionar);
    }//GEN-LAST:event_tfAdicionarMouseExited

    private void btAdicionarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btAdicionarMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_btAdicionarMouseClicked

    private void btAdicionarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btAdicionarMouseEntered
        // TODO add your handling code here:
        bgEntra(btAdicionar);
    }//GEN-LAST:event_btAdicionarMouseEntered

    private void btAdicionarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btAdicionarMouseExited
        // TODO add your handling code here:
        bgSai(btAdicionar);
    }//GEN-LAST:event_btAdicionarMouseExited

    private void iconRemoverMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconRemoverMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_iconRemoverMouseClicked

    private void iconRemoverMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconRemoverMouseEntered
        // TODO add your handling code here:
         bgEntra(btRemover);
    }//GEN-LAST:event_iconRemoverMouseEntered

    private void iconRemoverMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconRemoverMouseExited
        // TODO add your handling code here:
        bgSai(btRemover);
    }//GEN-LAST:event_iconRemoverMouseExited

    private void tfRemoverMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfRemoverMouseClicked
        // TODO add your handling code here:
        int linha = tbPlanoDeVacinacao.getSelectedRow();
        if (linha == -1) {
            JOptionPane.showMessageDialog(rootPane, "Por favor, selecione uma aplicação");
        } else {

            AplicacaoPlano planoAplicacao = new AplicacaoPlano();
            int codigo = (int) tbPlanoDeVacinacao.getValueAt(linha, 0);

            AplicacaoPlanoDAO dao = new AplicacaoPlanoDAO();
            planoAplicacao = dao.pesquisarCodigo(codigo);

            O17AvisoRemoverAplicacao tela = new O17AvisoRemoverAplicacao(planoAplicacao, tbPlanoDeVacinacao);
            tela.setVisible(true);
        }
    }//GEN-LAST:event_tfRemoverMouseClicked

    private void tfRemoverMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfRemoverMouseEntered
        // TODO add your handling code here:
        bgEntra(btRemover);
    }//GEN-LAST:event_tfRemoverMouseEntered

    private void tfRemoverMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tfRemoverMouseExited
        // TODO add your handling code here:
        bgSai(btRemover);
    }//GEN-LAST:event_tfRemoverMouseExited

    private void btRemoverMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btRemoverMouseClicked
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btRemoverMouseClicked

    private void btRemoverMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btRemoverMouseEntered
        // TODO add your handling code here:
         bgEntra(btRemover);
    }//GEN-LAST:event_btRemoverMouseEntered

    private void btRemoverMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btRemoverMouseExited
        // TODO add your handling code here:
        bgSai(btRemover);
    }//GEN-LAST:event_btRemoverMouseExited

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(O13TelaPlanoDeVacinacao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(O13TelaPlanoDeVacinacao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(O13TelaPlanoDeVacinacao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(O13TelaPlanoDeVacinacao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new O13TelaPlanoDeVacinacao().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel bgEntrou;
    private javax.swing.JLabel bgSaiu;
    private javax.swing.JPanel btAdicionar;
    private javax.swing.JPanel btCancelar;
    private javax.swing.JLabel btFechar;
    private javax.swing.JLabel btMaxi;
    private javax.swing.JLabel btMini;
    private javax.swing.JPanel btRemover;
    private javax.swing.JLabel iconAdicionar;
    private javax.swing.JLabel iconCancelar;
    private javax.swing.JLabel iconRemover;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel painelFechar;
    private javax.swing.JTable tbPlanoDeVacinacao;
    private javax.swing.JLabel tfAdicionar;
    private javax.swing.JLabel tfCancelar;
    private javax.swing.JLabel tfRemover;
    // End of variables declaration//GEN-END:variables
}
